package com.qiaofang.collectmanagebff.service.impl;

import com.qiaofang.collectmanage.stub.bean.*;
import com.qiaofang.collectmanage.stub.feign.client.HouseAgentClient;
import com.qiaofang.collectmanagebff.base.vo.SearchHouseAgentPageVO;
import com.qiaofang.collectmanagebff.service.HouseAgentService;
import com.qiaofang.common.model.page.PageDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("houseAgentService")
public class HouseAgentServiceImpl implements HouseAgentService {
	private static final Logger LOGGER = LoggerFactory.getLogger(HouseAgentServiceImpl.class);
	@Autowired
	private HouseAgentClient houstAgentClient;

	@Override
	public void saveHouseAgent(SaveHouseAgentDTO saveHouseAgentDTO) {
		houstAgentClient.saveHouseAgent(saveHouseAgentDTO);
	}

	@Override
	public void removeHouseAgent(RemoveHouseAgentDTO removeHouseAgentDTO) {
		houstAgentClient.removeHouseAgent(removeHouseAgentDTO);
	}

	@Override
	public SearchHouseAgentPageDTO searchHouseAgentPage(PageDTO pageDTO, SearchHouseAgentPostDTO searchHouseAgentPostDTO) {
		return  houstAgentClient.searchHouseAgentPage(pageDTO,searchHouseAgentPostDTO);
	}

}
